<?php
		/**
		 * return the full content of a page (devmod will be rendered!)
		 * @param $params
		 * @param $smarty
		 */
		function smarty_function_content($params, &$smarty)
		{
			
			if(empty($params['name']))
			{
				return "{content name=\"\"} name is empty!";
			}
			
			$parser = new Yomm_Library_CmsPageParser($params['name'], $smarty->theme, $smarty);
				
			return $parser->export()->text;
		}